package com.skywolf.chem.common.sysconfig.pojo.vo;

/**
 * Created by pei_pei on 2020/10/27.
 */

import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;

public class BaseVO {
    @ApiModelProperty("创建人")
    private String createdBy;
    @ApiModelProperty("更新人")
    private String updatedBy;
    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;
    @ApiModelProperty("更新时间")
    private LocalDateTime updatedTime;

    public BaseVO() {
    }

    public String getCreatedBy() {
        return this.createdBy;
    }

    public String getUpdatedBy() {
        return this.updatedBy;
    }

    public LocalDateTime getCreatedTime() {
        return this.createdTime;
    }

    public LocalDateTime getUpdatedTime() {
        return this.updatedTime;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    public boolean equals(Object o) {
        if(o == this) {
            return true;
        } else if(!(o instanceof BaseVO)) {
            return false;
        } else {
            BaseVO other = (BaseVO)o;
            if(!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    String this$createdBy = this.getCreatedBy();
                    String other$createdBy = other.getCreatedBy();
                    if(this$createdBy == null) {
                        if(other$createdBy == null) {
                            break label59;
                        }
                    } else if(this$createdBy.equals(other$createdBy)) {
                        break label59;
                    }

                    return false;
                }

                String this$updatedBy = this.getUpdatedBy();
                String other$updatedBy = other.getUpdatedBy();
                if(this$updatedBy == null) {
                    if(other$updatedBy != null) {
                        return false;
                    }
                } else if(!this$updatedBy.equals(other$updatedBy)) {
                    return false;
                }

                LocalDateTime this$createdTime = this.getCreatedTime();
                LocalDateTime other$createdTime = other.getCreatedTime();
                if(this$createdTime == null) {
                    if(other$createdTime != null) {
                        return false;
                    }
                } else if(!this$createdTime.equals(other$createdTime)) {
                    return false;
                }

                LocalDateTime this$updatedTime = this.getUpdatedTime();
                LocalDateTime other$updatedTime = other.getUpdatedTime();
                if(this$updatedTime == null) {
                    if(other$updatedTime != null) {
                        return false;
                    }
                } else if(!this$updatedTime.equals(other$updatedTime)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof BaseVO;
    }

    public int hashCode() {
        boolean PRIME = true;
        byte result = 1;
        String $createdBy = this.getCreatedBy();
        int result1 = result * 59 + ($createdBy == null?43:$createdBy.hashCode());
        String $updatedBy = this.getUpdatedBy();
        result1 = result1 * 59 + ($updatedBy == null?43:$updatedBy.hashCode());
        LocalDateTime $createdTime = this.getCreatedTime();
        result1 = result1 * 59 + ($createdTime == null?43:$createdTime.hashCode());
        LocalDateTime $updatedTime = this.getUpdatedTime();
        result1 = result1 * 59 + ($updatedTime == null?43:$updatedTime.hashCode());
        return result1;
    }

    public String toString() {
        return "BaseVO(createdBy=" + this.getCreatedBy() + ", updatedBy=" + this.getUpdatedBy() + ", createdTime=" + this.getCreatedTime() + ", updatedTime=" + this.getUpdatedTime() + ")";
    }
}

